package com.wanho.java158.impl;

import com.github.pagehelper.PageInfo;
import com.wanho.java157.GoodsVoMapper;
import com.wanho.java157.Orders;
import com.wanho.java157.OrdersMapper;
import com.wanho.java157.po.BaseEntity;
import com.wanho.java157.vo.GoodsVo;
import com.wanho.java158.GoodsService;
import com.wanho.java158.OrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.List;

@Service
public class GoodsServiceImpl implements GoodsService {
    @Autowired
    private GoodsVoMapper goodsVoMapper;


    @Override
    public List<GoodsVo> selectAll() {
        return goodsVoMapper.selectAll();
    }

    @Override
    public boolean delete(Integer id) {
        return goodsVoMapper.delete(id);
    }

    @Override
    public boolean update(GoodsVo goodsVo) {
        return goodsVoMapper.update(goodsVo);
    }

    @Override
    public boolean add(GoodsVo goodsVo) {
        return goodsVoMapper.add(goodsVo);
    }




}
